package ModelLayer;
import java.util.ArrayList;
import java.util.Scanner;


public class Loan
{
    private Copy copy;
    private int id;
    private String borrowDate;
    private String period;

    public Loan()
    {   
    }
    public Loan createLoan(int no,int id,String borrowDate,String period)
    {Loan l=new Loan();
     copy.copyBorrow(no);
     l.setId(id);
     l.setBorrowDate(borrowDate);
     l.setPeriod(period);
     return l;}
    public void setId(int id)
    {this.id=id;}
    public void setBorrowDate(String borrowDate)
    {this.borrowDate=borrowDate;}
    public void setPeriod(String period)
    {this.period=period;}
    public void returnLoan(int no)
    {copy.returnBorrow(no);}
}
